import ElementPlus from 'element-plus'
import '../element-variables.scss'
import locale from 'element-plus/lib/locale/lang/zh-cn'
import * as Icons from '@element-plus/icons-vue'//导入所有element icon图标

export default (app: any) => {
  // 全局注册element-plus icon图标组件
  Object.keys(Icons).forEach((key) => {
    app.component(key, (Icons as any)[key]);
  });
  app.use(ElementPlus, { locale })
}
